package com.gopay.common.domain.rcs;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;



import com.gopay.common.domain.BaseEntity;

/**
 * 风控服务 防钓鱼变更日志
 * 
 * @author lwk
 */
/**
 * @author lwk
 * 
 */
@Entity
@Table(name = "RCS_ANTI_PHISH_CONF_EDIT_LOG")
public class RcsAntiPhishConfEditLog extends BaseEntity {

    public RcsAntiPhishConfEditLog() {
        this.createdTs = new Date();
        this.lastUpdTs = new Date();
        this.operTime = new Date();
    }
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(name = "RcsAntiPhishEditSequence", sequenceName = "RCS_ANTI_PHISH_CONF_EDIT_SEQ")
    @GeneratedValue(generator = "RcsAntiPhishEditSequence", strategy = GenerationType.SEQUENCE)
    @Column(name = "SQ", nullable = false, unique = true)
    private int sq;

    @Column(name = "OPER_ID", nullable = false)
    private String operId;

    @Column(name = "OPER_NAME", nullable = false)
    private String operName;

    @Column(name = "OPER_TIME", nullable = false)
    private Date operTime;

    /**
     * 操作类型 
     * 01-单商户 
     * 02-全局
     */
    @Column(name = "OPER_CONF_TYPE", nullable = false)
    private String operConfType;

    @Column(name = "OPER_TARGET_SQ", nullable = false)
    private String operTargetSq;

    @Column(name = "VAL_BEFORE_EDIT")
    private String valBeforeEdit;

    @Column(name = "VAL_AFTER_EDIT")
    private String valAfterEdit;

    @Column(name = "OPER_DESC")
    private String operDesc;

    @Column(name = "CREATED_TS")
    private Date createdTs;

    @Column(name = "LAST_UPD_TS")
    private Date lastUpdTs;

    @Column(name = "LAST_UPD_TRANCODE")
    private String lastUpdTrancode;

    /**
     * 修改性质
     * 01 - 开关调整 
     * 02 - 合法值调整 
     * 03 - 网关通道调整 
     * 04 - 非法请求处理方式调整 
     * 05 - 防钓鱼类型调整
     */
    @Column(name = "EDIT_NATURE")
    private String editNature;

    public int getSq() {
        return sq;
    }

    public void setSq(int sq) {
        this.sq = sq;
    }

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public Date getOperTime() {
        return operTime;
    }

    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }

    public String getOperConfType() {
        return operConfType;
    }

    public void setOperConfType(String operConfType) {
        this.operConfType = operConfType;
    }

    public String getOperTargetSq() {
        return operTargetSq;
    }

    public void setOperTargetSq(String operTargetSq) {
        this.operTargetSq = operTargetSq;
    }

    public String getValBeforeEdit() {
        return valBeforeEdit;
    }

    public void setValBeforeEdit(String valBeforeEdit) {
        this.valBeforeEdit = valBeforeEdit;
    }

    public String getValAfterEdit() {
        return valAfterEdit;
    }

    public void setValAfterEdit(String valAfterEdit) {
        this.valAfterEdit = valAfterEdit;
    }

    public String getOperDesc() {
        return operDesc;
    }

    public void setOperDesc(String operDesc) {
        this.operDesc = operDesc;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getLastUpdTrancode() {
        return lastUpdTrancode;
    }

    public void setLastUpdTrancode(String lastUpdTrancode) {
        this.lastUpdTrancode = lastUpdTrancode;
    }

    public String getEditNature() {
        return editNature;
    }

    public void setEditNature(String editNature) {
        this.editNature = editNature;
    }

}
